﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMSModel
{
    /// <summary>
    /// 文章类别表
    /// </summary>
    public class Category
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 类别名称
        /// </summary>
        public string CategoryName { get; set; }
        /// <summary>
        /// 父类别
        /// </summary>
        public int ParentCategoryId { get; set; }
        /// <summary>
        /// 父类别
        /// </summary>
        public virtual Category ParentCategory { get; set; }

        public Category()
        {
            this.Id = int.MinValue;
            this.ParentCategoryId = int.MinValue;
        }
    }
}
